<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var ball_box = []
        var p = 0
        while(ball_box.length < 6){
            var ball = Math.random()*33 + 1   //1-33获取 数
            ball = Math.floor(ball)           //1-33获取 数            
            if(ball_box.indexOf(ball) == -1){
                ball_box[ball_box.length] = ball
                console.log(ball);
            }                    
                      
        }
    </script>
</body>
</html>